package com.evildog.workspace.file.enums;

import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回前端状态码
 */
@AllArgsConstructor
@Getter
public enum FileCustomExceptionDesc implements ICustomExceptionDesc {


    /* ============================     custom status code    =================================================  */

    NGINX_NOT_CONFIG("B103001", "nginx没有配置", "nginx没有配置"),
    LOCAL_FILE_UPLOAD_FAILED("B103002", "文件上传失败", "文件上传失败"),
    MULTI_FILE_UPLOAD_FAILED("B103003", "MultipartFile文件上传失败", "MultipartFile文件上传失败"),
    NORMAL_FILE_UPLOAD_FAILED("B103004", "File 文件上传失败", "File 文件上传失败"),
    INPUT_STREAM_UPLOAD_FAILED("B103005", "inputStream 文件上传失败", "inputStream 文件上传失败"),
    RELATIVE_PATH_NOT_HAS_TEXT("B103006", "相对路径为空", "相对路径为空"),
    FOLDER_NOT_HAS_TEXT("B103007", "存储桶名为空", "存储桶名为空"),
    BUCKET_NOT_EXIST("B103008", "存储桶不存在", "存储桶不存在"),
    FILE_SERVICE_UPLOAD_ERROR("B103009", "文件上传失败", "文件上传失败"),

    ;


    /**
     * 状态码
     */
    private String code;
    /**
     * 信息，前端展示信息
     */
    private String message;

    /**
     * 描述
     */
    private String description;


}
